package com.ansion.commonchat.contact.utils;

import android.content.Intent;
import android.text.TextUtils;

import com.ansion.basedb.dao.LoginedUserMgr;
import com.ansion.basedb.dao.helper.UserHelper;
import com.ansion.basedb.dao.model.CurrentUser;
import com.ansion.commonchat.contact.AppConstants;
import com.ansion.log.VLog;
import com.ansion.utils.CocoLocalBroadcastUtil;
import com.ansion.utils.SettingHelper;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;


public class GetMatchUserManager {
    private static final String TAG = "TAG_CONTACT_UPLOAD";
    private static GetMatchUserManager manager;

    private static final int RETRY_TIME = 5 * 1000;

    private GetMatchUserManager() {

    }
    public static boolean isFirstMatched() {
        synchronized (GetMatchUserManager.class) {
            SettingHelper.isContactFirstMatched();
            return true;
        }
    }

    public static void setFirstMatched(boolean isFirstMatched) {
        synchronized (GetMatchUserManager.class) {
            SettingHelper.setContactFirstMatched(isFirstMatched);
        }
    }
    public static synchronized GetMatchUserManager getInstance() {

        if (null == manager) {
            synchronized (GetMatchUserManager.class) {
                if (null == manager) {
                    manager = new GetMatchUserManager();
                }
            }
        }
        return manager;
    }


}
